package cn.yitun.chat.yitunservercommonlib.converter.po2vo.contact;


import cn.yitun.chat.yitunservercommonlib.dataentity.po.contact.ContactAddVerifyAnswerInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.contact.ContactAddVerifyAnswerVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface ContactAddVerifyAnswerPo2VoConverter {

    ContactAddVerifyAnswerPo2VoConverter INSTANCE = Mappers.getMapper(ContactAddVerifyAnswerPo2VoConverter.class);

    ContactAddVerifyAnswerInfo vo2po(ContactAddVerifyAnswerVo vo);

    List<ContactAddVerifyAnswerInfo> vo2po(List<ContactAddVerifyAnswerVo> voList);

    @InheritInverseConfiguration
    ContactAddVerifyAnswerVo po2vo(ContactAddVerifyAnswerInfo dto);

    @InheritInverseConfiguration
    List<ContactAddVerifyAnswerVo> po2vo(List<ContactAddVerifyAnswerInfo> dtoList);
}
